/*
    created: 2023/4/21
    filename: MainTBT.c
    author: 李东霖
    purpose: 二叉树线索化和他的遍历
*/

#include"threaded_btree.h"
int main()
{
    char str[] = "2(6(4,8),4(1,9))";
    //char str[] = "A(B(D(,G)),C(E,F))";

    TBTTree tree = NULL;
    CreateBTree(&tree,str);   
    InOrder(tree);
    printf("\n");
    CreateInThread(tree);
    printf("\n");
    CInOrder(tree);
    printf("\n");
    RInOrder(tree);

    return 0;
}